﻿#ifndef SASOMIAOTHEARD_H
#define SASOMIAOTHEARD_H
#pragma execution_character_set("utf-8") //解决中文乱码
#pragma once
#include <QThread>
#include <windows.h>
#include <iostream>
#include "cunchulianbiao.h"

class MainWindow;

class sasomiaotheard : public QThread
{
    Q_OBJECT
public:

    void run() override;
    struct Node {
        unsigned long long       dizhiaddress;
        unsigned long long       value;
        unsigned long long       oldvalue;
        Node*                    prev;
        Node*                    next;
    };

    struct sendercanshu {
        unsigned long long jiancha2=1;
        unsigned long long jiancha;
        uint processID;
        int xuhao;
        int guize;
        cunchulianbiao *lianbiao;
    };
    explicit sasomiaotheard(QObject *parent = nullptr);
    void *chuancan1=nullptr;
    void readprocessmubiao(void * chuancan1);
    void zaicisaomiao(void * chuancan1);
public slots:
    void recveshu(void * chuancanxx)
    {
        chuancan1=chuancanxx;
    }

signals:
     void saomiaoend();

};

#endif // SASOMIAOTHEARD_H
